package com.tom.mapper;

import com.tom.pojo.Subscribe;

import java.util.List;

public interface SubscribeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Subscribe record);

    int insertSelective(Subscribe record);

    Subscribe selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Subscribe record);

    int updateByPrimaryKey(Subscribe record);

    List<Subscribe> selectByUserId(Integer userId);

    Subscribe selectByUserIdAndRestId(Subscribe record);
}